package com.example.conference.mapper;

import com.example.conference.domain.Role;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface RoleMapper {
    @Select("select * from role where role_id = #{roleId}")
    Role queryById(Integer roleId);

    @Select("select * from role")
    List<Role> queryAll();
}
